package com.aforce.managers;

public class TimeManager
{
	static long gametime_elapsed = System.currentTimeMillis();
	static long gametime_checkpoint = System.currentTimeMillis();  
	static boolean paused = false;
	
	public static long getTime()
	{
		if(paused) return gametime_elapsed;
		long current = System.currentTimeMillis();
		gametime_elapsed += current - gametime_checkpoint;
		gametime_checkpoint = current;
		return gametime_elapsed;
	}
}
